		<div id="main-content">
            <?php
                $content = form_open_multipart('/admin/licitatii/' . $form_route);
                $content .= form_label('Denumire:', 'frmAuctionName');
                $value = $auction!=FALSE?$auction['auc_name']:set_value('frmAuctionName');
                $content .= form_input(array('name' => 'frmAuctionName', 'id' => 'frmAuctionName', 'value' => $value));
                $content .= form_label('Descrierea bunului:', 'frmAuctionDesc');
                $value =  $auction!=FALSE?$auction['auc_description']:set_value('frmAuctionDesc');
                $content .= form_textarea(array('name' => 'frmAuctionDesc', 'id' => 'frmAuctionDesc', 'value' => $value));
                $content .= form_label('Data:', 'frmAuctionDateStart');
                $value = $auction!=FALSE?strftime('%m/%d/%Y %H:%M', strtotime($auction['auc_startdate'])):'';
                $content .= form_input(array('name' => 'frmAuctionDateStart', 'id' => 'frmAuctionDateStart', 'value' => $value));
                /*$content .= form_label('Data:', 'frmAuctionDateEnd');
                $content .= form_input(array('name' => 'frmAuctionDateEnd', 'id' => 'frmAuctionDateEnd', 'value' => ''));*/
                $content .= form_label('Tipul bunului:', 'frmAuctionType');
                $auctionType = array('MOBIL' => 'Bunuri mobile', 'IMOBIL' => 'Bunuri imobile');
                $value = $auction!=FALSE?$auction['auc_type']:$this->input->post('frmAuctionType');
                $content .= form_dropdown('frmAuctionType', $auctionType, $value);
                $content .= form_label('Pret pornire:', 'frmAuctionPrice');
                $value = $auction!=FALSE?$auction['auc_startprice']:set_value('frmAuctionPrice');
                $content .= form_input(array('name' => 'frmAuctionPrice', 'id' => 'frmAuctionPrice', 'value' => $value));
                $cnts = $contacts!=FALSE?$contacts:array();
                $cnts['0'] = 'Adauga societate';
                $content .= form_label('Societate:', 'frmAuctionOwner');
                $value = $auction!=FALSE?$auction['auc_owner']:$this->input->post('frmAuctionOwner');
                $content .= form_dropdown('frmAuctionOwner', $cnts, $value);
                $cnts['0'] = 'Adauga persoana contact';
                $content .= form_label('Persoana de contact:', 'frmAuctionContact');
                $value = $auction!=FALSE?$auction['auc_contact']:$this->input->post('frmAuctionContact');
                $content .= form_dropdown('frmAuctionContact', $cnts, $value);
                $content .= form_label('Documente:', 'frmAuctionDocs');
                $content .= form_upload(array('name' => 'frmAuctionDocs[]', 'id' => 'frmAuctionDocs', 'value' => '', 'class' => 'multi', 'accept' => 'pdf|doc'));
                $content .= form_label('Logo:', 'frmAuctionLogo');
                $content .= form_upload(array('name' => 'frmAuctionLogo', 'id' => 'frmAuctionLogo', 'value' => '', 'class' => 'multi', 'accept' => 'jpg|png|bmp', 'maxlength' => '1'));
                $content .= form_submit('frmAuctionSend', 'Salveaza');
                $content .= form_close();
                echo $content;
            ?>			
		</div>
		
		<div class="clear"><?php echo '<p style="text-align:center;">' . $message .'</p>';?></div>
	</div>

</body>

</html>
